JBoss Community Archive (Read Only)

Portlet Bridge 3.1

Render Policy

Different JSF View Declaration Languages require different behavior from the JBoss Portlet Bridge when it comes to rendering views. Instructing the Bridge on which policy to use is done using the javax.portlet.faces.RENDER_POLICY context-param in web.xml.

If you're using Facelets:

Include the following in web.xml:

<context-param>
  <param-name>javax.portlet.faces.RENDER_POLICY</param-name>
  <param-value>ALWAYS_DELEGATE</param-value>
</context-param>

If you're using JSP:

Include the following in web.xml:

<context-param>
  <param-name>javax.portlet.faces.RENDER_POLICY</param-name>
  <param-value>NEVER_DELEGATE</param-value>
</context-param>

Supported Render Policies in JBoss Portlet Bridge:

  • ALWAYS_DELEGATE: Indicates the Bridge should not render the view itself but rather always delegate the rendering.

  • NEVER_DELEGATE: Indicates the Bridge should always render the view itself and never delegate.

  • DEFAULT: Directs the Bridge to first delegate the render and if and only if an Exception is thrown then render the view based on its own logic. If the configuration parameter is not present or has an invalid value the Bridge renders using default behavior. I.e. as if DEFAULT is set.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:27:01 UTC, last content change 2012-10-24 15:58:11 UTC.